﻿using Hangfire;
using System;

namespace NoticeWechat.Hangfire
{
    public static class JobRunner
    {
        public static void Start()
        {
            RecurringJob.AddOrUpdate<MessageJob>(m => m.RecurringJob_Reset_Status(), Cron.Daily(), TimeZoneInfo.Local);
            
            RecurringJob.AddOrUpdate<MessageJob>(m => m.SendMessage(), Cron.Minutely, TimeZoneInfo.Local);

            RecurringJob.AddOrUpdate<NodesJob>(m => m.Check_Nodes_HeartBeat(), Cron.MinuteInterval(10), TimeZoneInfo.Local);
        }



    }

}
